import { TEquipRefreshRate } from "../../../../Message/Db/Tables/TEquipRefreshRate";
import { StringHelper } from "../../../../com/gengine/utils/StringHelper";
type int = number;
//class EquipRefreshRateInfo
    
    export  class EquipRefreshRateInfo extends TEquipRefreshRate
    {
        constructor()
        {
            
            super();this.rateDic = new Map<any, any> /* flash.utils.Dictionary */();
            return;
        }

        public initData(arg1: Object): void
        {
            this.id = arg1.id;
            this.career = arg1.career;
            this.type = arg1.type;
            this.category = arg1.category;
            this.rate = StringHelper.getString(arg1.rate);
            this.initRateDic();
            return;
        }

        /* internal  */initRateDic(): void
        {
            var loc2=null;
            var loc3=null;
            var loc1=rate.split("#");
            var loc4=0;
            var loc5=loc1;
            for(loc3 of loc5) 
            {
                if (loc3 == "") 
                {
                    continue;
                }
                loc2 = loc3.split(",");
                this.rateDic[loc2[0]] = loc2[1];
            }
            return;
        }

        public hasRate(arg1: int): Boolean
        {
            if (this.rateDic[arg1] != null) 
            {
                return true;
            }
            return false;
        }

        public /* var */rateDic: Map<any, any> /* flash.utils.Dictionary */;
    }
